-----------------------------------------
-- ID: 4381
-- Item: meat_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 22
-- Attack Cap 60
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------

function onItemCheck(target)
    local result = 0;
    if (target:hasStatusEffect(dsp.effect.FOOD) == true or target:hasStatusEffect(dsp.effect.FIELD_SUPPORT_FOOD) == true) then
        result = 246;
    end
    return result;
end;

function onItemUse(target)
    target:addStatusEffect(dsp.effect.FOOD,0,0,1800,4381);
end;

function onEffectGain(target, effect)
    target:addMod(dsp.mod.STR, 5);
    target:addMod(dsp.mod.AGI, 1);
    target:addMod(dsp.mod.INT, -2);
    target:addMod(dsp.mod.FOOD_ATTP, 22);
    target:addMod(dsp.mod.FOOD_ATT_CAP, 60);
end;

function onEffectLose(target, effect)
    target:delMod(dsp.mod.STR, 5);
    target:delMod(dsp.mod.AGI, 1);
    target:delMod(dsp.mod.INT, -2);
    target:delMod(dsp.mod.FOOD_ATTP, 22);
    target:delMod(dsp.mod.FOOD_ATT_CAP, 60);
end;
